package com.ruoyi.products.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 products
 * 
 * @author 丁
 * @date 2024-09-18
 */
public class Products extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品积分 */
    @Excel(name = "商品积分")
    private Long points;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String imageUrl;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String details;

    /** 兑换数量 */
    @Excel(name = "兑换数量")
    private Long exchangeQuantity;

    /** 创建/更新时间 */
    private Date lastModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }
    public void setExchangeQuantity(Long exchangeQuantity) 
    {
        this.exchangeQuantity = exchangeQuantity;
    }

    public Long getExchangeQuantity() 
    {
        return exchangeQuantity;
    }
    public void setLastModified(Date lastModified) 
    {
        this.lastModified = lastModified;
    }

    public Date getLastModified() 
    {
        return lastModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("points", getPoints())
            .append("imageUrl", getImageUrl())
            .append("details", getDetails())
            .append("exchangeQuantity", getExchangeQuantity())
            .append("lastModified", getLastModified())
            .toString();
    }
}
